package com.guyu.plugin.oss.config;

import com.guyu.plugin.oss.core.OssClient;
import com.guyu.plugin.oss.properties.OssProperties;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * OSS配置
 *
 * @author Lion Li
 */
@AutoConfiguration
@EnableConfigurationProperties(OssProperties.class)
public class OssConfig {

    @Bean
    public OssClient ossClient(OssProperties ossProperties) {
        return new OssClient(ossProperties);
    }
}
